package com.doudizu.shoesonline.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 产品颜色
 * @TableName product_color
 */
@TableName(value ="product_color")
@Data
public class ProductColor implements Serializable {
    /**
     * 颜色id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 产品id
     */
    private Integer productId;

    /**
     * 颜色id
     */
    private Integer colorId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}